package com.mornd.gulimall.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.mornd.gulimall.common.core.entity.PageEntity;
import com.mornd.gulimall.product.entity.vo.spusave.ImageVo;
import com.mornd.gulimall.product.entity.vo.spusave.SaleVo;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * sku信息
 * </p>
 *
 * @author mornd
 * @since 2023-07-23
 */
@Getter
@Setter
@TableName("pms_sku_info")
public class SkuInfo extends PageEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * skuId
     */
    @TableId(value = "sku_id", type = IdType.AUTO)
    private Long skuId;

    /**
     * spuId
     */
    private Long spuId;

    /**
     * sku名称
     */
    private String skuName;

    /**
     * sku介绍描述
     */
    private String skuDesc;

    /**
     * 所属分类id
     */
    private Long catalogId;

    /**
     * 品牌id
     */
    private Long brandId;

    /**
     * 默认图片
     */
    private String skuDefaultImg;

    /**
     * 标题
     */
    private String skuTitle;

    /**
     * 副标题
     */
    private String skuSubtitle;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 销量
     */
    private Long saleCount;

    /**
     * 图集
     */
    @TableField(exist = false)
    private List<ImageVo> selectedImages;

    /**
     * 销售属性集合
     */
    @TableField(exist = false)
    private List<SaleVo> sales;

    @TableField(exist = false)
    private String brandName;

}
